// 右侧工具栏
.tool-bar{
    position: fixed;
    z-index: 1002;
    right: 0;
    top: 0;
    height: 100%;
    width: 44px;
    background-color: #252525;
    text-align: center;
    color: #FFF;
    font-size: 12px;
    li{
        position: relative;;
        height: 55px;
        margin-top: 2px;
        background-color: #383838;
        &:hover{
            cursor: pointer;
            .iconfont{
                color: $mainColor;
                transition: all 0.5s;
            }
            &>.hide{
                display: block;
            }
        }
        &>.hide{
            display: none;
            position: absolute;
            right: 44px;
            top: 0;
            padding: 10px;
            background-color: #29292a;
            font-size: 14px;
            line-height: 1.2;
        }
    }
    p{
        margin: 0;
        margin-top: -5px;
    }
    img{
        width: 90px;
    }
    .iconfont{
        font-size: 24px;
    }
    .sep{
        height: 100px;
        margin-top: 0;
        background-color: #252525;
    }
    .service,
    .top{
        &>.hide{
            width: 44px;
            height: 44px;
            padding: 4px;
        }
    }
    .service{
        &>.hide{
            height: 55px;
            padding-top: 12px;
        }
    }
    .top{
        position: fixed;
        bottom: 80px;
        width: 44px;
        height: 44px;
        padding-top: 3px;
        &>.hide{
            padding-top: 6px;
        }
    }
    .done{
        display: block;
        animation: done 0.2s ease;
    }
    @keyframes done {
        0% {transform: rotate(0deg);}
        25% {transform: rotate(-30deg);}
        50% {transform: rotate(0deg);}
        75% {transform: rotate(30deg);}
        100% {transform: rotate(0deg);}
    }
    .cartPoint{
        &>em{
            display: block;
            position: absolute;
            z-index: 10;
            left: -2px;
            top: -12px;
            width: 20px;
            line-height: 20px;
            text-align: center;
            border-radius: 100%;
            background-color: $mainColor;
            color: #fff;
        }
    }
}
// 底部咨询框
.service-box{
    position: fixed;
    z-index: 1002;
    // top: 80%;
    top: 70%;
    bottom: 140px;
    right: 100px;
    padding-top: 30px;
    height: 135px;
    &.run_small {
        animation: run_small 1s ease-in-out;
    }
    &:hover{
        .close{
            display: block;
        }
    }
    .close{
        position: absolute;
        right: 0;
        top: 0;
        color: #bbb;
        width: 18px;
        line-height: 16px;
        text-align: center;
        border: 1px solid #bbb;
        border-radius: 100%;
        display: none;
        &:hover{
            cursor: pointer;
            color: $mainColor;
            border-color: $mainColor;
        }
    }
    .main,
    .text{
        cursor: pointer;
        color: #fff;
        background: $mainColor;
        text-align: center;
        &:hover{
            background: $lightColor;        
        }  
    }
    .main{
        width: 65px;
        height: 65px;
        padding-top: 10px;
        border-radius: 100%;
        &>span{
            font-size: 28px;
        }
    }
    .text{
        width: 65px;
        height: 30px;
        line-height: 30px;
        margin-top: 5px;
        border-radius: 15px;
    }
    @keyframes run_small {
        from {
            transform: scale(1);
            right: 100px;
        }
        to {
            transform: scale(0.4);
            right: -10px;
            // top: 160px;
            top: 215px;
        }
    }
}